<template>
	<view>
		<view class="box-1" style="display: flex;">
			<view class="text-num" 
			style="text-align: center;">
				{{questionPaper.sumScore}}
			</view>
			<view class="text-word">
			分
			</view>		
		</view>
		<view >
			<circulate @getChild='getChild'>
			</circulate>
		</view>
		<view >
			<button class="buttonLook" 
			type="primary"
			 @click="look">
				查看试卷情况
			</button>
		</view>
	</view>
</template>

<script>
	import circulate from "../../components/testDetail/testDetail-circulate.vue"
	export default{
		data(){
			return{
				questionPaper:{
					sumScore:50
				}
			}
		},
		components:{
			circulate
		},
		methods:{
			look(){
				// 跳转到考试详情页
				uni.navigateTo({
					url:"/pages/testDetail/recordDetail"
				})
			},
			getChild(e){
				this.questionPaper.sumScore=e;
			}
		}
	}
</script>

<style lang="scss">
	.box-1{
		align-items: center;
		margin:auto ;
		// flex-direction: column;
		width:354rpx;
		height: 254rpx;
		// background-color: #C0C0C0;
	}
	.text-num{
		text-align: center;
		margin-left: 70rpx;
		font-size: 150rpx;
		// color: $main-color;
		color: #3498DB;
	}
	.text-word{
		margin-top: 70rpx;
		color: #3498DB;
		font-size: 50rpx;
	}
	.buttonLook{
		background-color: #3498DB;
		bottom: 0;
		position: absolute;
		width: 750rpx;
		border-radius: 0;
	}
</style>
